import type { MarkType, NodeType, Schema } from "@rivet/model";

// 根据节点名称获取节点类型
export function getSchemaTypeByName(
  name: string,
  schema: Schema,
): NodeType | MarkType | null {
  return schema.nodes[name] || schema.marks[name] || null;
}
